import request from '@/utils/request'

// 新建
export function createLottery(data: any) {
  return request({
    url: '/scrm-api/console/market/lottery/create',
    method: 'POST',
    data
  })
}
// 查看
export function lookLottery(params?: any) {
  return request({
    url: '/scrm-api/console/market/lottery/view',
    params
  })
}
// 编辑
export function editLottery(data?: any) {
  return request({
    url: '/scrm-api/console/market/lottery/edit',
    method: 'POST',
    data
  })
}
